package cn.hs.lyxf.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author mzy
 * @since 2022-12-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_maintenance")
public class Maintenance extends Model<Maintenance> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 所需维保的公司
     */
    @TableField("user_company_id")
    private Long userCompanyId;
    /**
     * 公司电话
     */
    @TableField("user_company_phone")
    private String userCompanyPhone;
    /**
     * 公司负责人
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 创建时间
     */
    @TableField("crate_time")
    private Date crateTime;
    /**
     * 签约年限
     */
    @TableField("signed_year")
    private Integer signedYear;
    @TableField("company_dimension")
    private String companyDimension;
    @TableField("total_price")
    private BigDecimal totalPrice;
    @TableField("emp_id")
    private Long empId;
    private Integer type;

    @Override
    protected Serializable pkVal() {
        return null;
    }
}
